package com.gin.kotlin.no_gay_alliance.model

import android.os.Parcelable
import com.gin.nga.response.resource.index.ForumSubGroup
import kotlinx.parcelize.Parcelize

@Parcelize
class ForumSubGroupModel(
    val name: String? = null,
    val entries: MutableList<ForumEntryModel>? = null,
) : Parcelable {

    constructor(group: ForumSubGroup) :this(
        group.name,
        group.forums?.map { ForumEntryModel(it) }?.toMutableList()
    )
}